package com.briup.product_source.service.Impl;

import com.briup.product_source.bean.Basic.BaseLog;
import com.briup.product_source.dao.Ext.BaseLogExtMapper;
import com.briup.product_source.service.LogService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImpl implements LogService {
    @Autowired
    private BaseLogExtMapper baseLogExtMapper;
    @Override
    public PageInfo<BaseLog> findByPage(String host, Integer pageNum, Integer pageSize){
        PageHelper.startPage(pageNum,pageSize,true);
        return new PageInfo<>(baseLogExtMapper.findAllByPage(host));

    }
}
